package com.lier.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lier.common.utils.PageUtils;
import com.lier.gulimall.product.entity.AttrEntity;
import com.lier.gulimall.product.vo.AttrResponseVo;
import com.lier.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author lier
 * @email 664478853@qq.com
 * @date 2025-06-06 14:14:16
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attrVo);

    PageUtils listAttr(Map<String, Object> params, Long catelogId, String attrType);

    AttrResponseVo getAttrDetail(Long attrId);

    void updateAttr(AttrVo attrVo);


    PageUtils getRelationNoAttr(Map<String, Object> params, Long attrgroupId);

    List<Long> selectSearchAttrs(List<Long> attrIdList);

    List<AttrEntity> selectListByAttrIdList(List<Long> attrIdList);
}

